package demo2;

public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(123);
        myStack.push(789);
        System.out.println("删除栈顶元素: " + myStack.pop());
        System.out.println("获得栈顶元素: " + myStack.peek());
        //判断栈是不是空
        System.out.println(myStack.isEmpty());
    }
}
